API Documentation
ComponentManager.h
1 // ComponentManager.h
3 //
5 
6 namespace nkWinUi
7 {
14  class DLL_WINUI_EXPORT ComponentManager final : public nkCommon::SingletonClass<ComponentManager>
15  {
16  public :
17 
25  Component* createOrRetrieve (const std::string_view& name, COMPONENT_TYPE componentType) ;
32  Component* get (const std::string_view& name) const ;
38  void erase (const std::string_view& name) ;
39  } ;
40 }
nkWinUi::ComponentManager::erase
void erase(const std::string_view &name)
nkWinUi::Component
Base class for any graphical component.
Definition: Component.h:12
nkWinUi::COMPONENT_TYPE
COMPONENT_TYPE
Available component types.
Definition: ComponentType.h:12
nkWinUi::ComponentManager::createOrRetrieve
Component * createOrRetrieve(const std::string_view &name, COMPONENT_TYPE componentType)
nkWinUi::ComponentManager
Manages the components within nkWinUi.
Definition: ComponentManager.h:15
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Button.h:7
nkWinUi::ComponentManager::get
Component * get(const std::string_view &name) const